package com.tj.service.impl;

import com.tj.mapper.OrdersMapper;
import com.tj.pojo.Orders;
import com.tj.service.OrdersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrdersServiceImpl implements OrdersService {
    @Resource
    private OrdersMapper ordersMapper;

    @Override
    public List<Orders> findAllList() {
        return ordersMapper.findAllList();
    }

    @Override
    public List<Orders> findOrdersListById(String orderId) {
        return ordersMapper.findOrdersListById(orderId);
    }

    @Override
    public int insertOrders(Orders orders) {
        return ordersMapper.insertOrders(orders);
    }

    @Override
    public int updateOrders(Orders orders) {
        return ordersMapper.updateOrders(orders);
    }

    @Override
    public int deleteOrders(Orders orders) {
        return ordersMapper.deleteOrders(orders);
    }


}
